package com.ruoyi.client.service.impl;

import com.ruoyi.client.domain.SysSell;
import com.ruoyi.client.mapper.SysSellMapper;
import com.ruoyi.client.service.ISysSellService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysSellServiceImpl implements ISysSellService {
    @Autowired
    SysSellMapper sysSellMapper;
    @Override
    public List<SysSell> sysSellList(String symbol) {
        return sysSellMapper.sysSellList(symbol);
    }

    @Override
    public void add(SysSell sysSell) {
        sysSellMapper.add(sysSell);
    }

    @Override
    public SysSell selectSysSellById(Integer id) {
        return sysSellMapper.selectSysSellById(id);
    }

    @Override
    public void updateHandsById(SysSell sysSell) {
        sysSellMapper.updateHandsById(sysSell);
    }

    @Override
    public SysSell selectSysSellBySymbolAndSellPrice(String symbol, String sellPrice) {
        return sysSellMapper.selectSysSellBySymbolAndSellPrice(symbol,sellPrice);
    }

    @Override
    public void updateHandsByIds(Integer id, String hands) {
        sysSellMapper.updateHandsByIds(id,hands);
    }

    @Override
    public List<SysSell> sysSellListAll(String symbol) {
        return sysSellMapper.sysSellListAll(symbol);
    }
}
